<template>
  <view>
    <u-navbar :background="{ background: '#fff' }" back-icon-color="#222222" title-color="#222222" title="公告详情" :border-bottom="false"></u-navbar>
    <view class="" style="font-size: 28rpx; padding: 35rpx">
      {{ data.title }}:
      {{ data.content }}
    </view>
    <view class="" style="font-size: 26rpx; color: #999999; padding-left: 38rpx">
      {{ data.create_time_text }}
    </view>
  </view>
</template>

<script>
export default {
  name: '',
  data() {
    return {
      id: null,
      data: {}
    };
  },
  //方法
  methods: {
    detail() {
      this.api({
        url: '/api/doctor/noticeDetails',
        method: 'post',
        data: {
          notice_id: this.id
        }
      }).then((res) => {
        this.data = res.data;
      });
    }
  },
  //首页渲染
  onLoad(options) {
    this.id = options.id;
    this.detail();
  },
  //监听
  watch: {},
  //计算属性
  computed: {}
};
</script>

<style lang="scss" scoped></style>
